using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartApplication.Domain.Entity
{
    /// <summary>
    /// 养殖企业信息
    /// </summary>
    [Table("CompaniesModel")]
    public class CompaniesModel : BaseEntity
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string CompaniesName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        [Required]
        public string ChargeName { get; set; }

        /// <summary>
        /// 存栏数量
        /// </summary>
        public int AnimalNumber { get; set; }

        /// <summary>
        /// 图片(企业照片)
        /// </summary>
        [StringLength(500)]
        [Required]
        public string Pic { get; set; }

    }
} 